package com.processor;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Servlet1 extends HttpServlet {
	public Servlet1() {
	}
	
	
	public void init() throws ServletException {
	}

	public void destroy() {
	}
	
	
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws ServletException, IOException {


		try {
			PrintWriter out = resp.getWriter();
			out.println("\t<Result>");
			out.println("\t\t<Process>");
			out.print("\t\t\t<Result>");
			out.println("Exception</Result>");
			out.print("\t\t\t<Message><![CDATA[");
			out.print("hahahahahahahaha");
			out.println("]]></Message>");
			out.println("\t\t</Process>");
			out.println("\t</Result>");
		} catch (Throwable e) {

			// throw new ServletException(e);
		} finally {

		}
	}
	
	
	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
	throws ServletException, IOException {
		
		try {
			PrintWriter out = resp.getWriter();
			out.println("\t<Result>");
			out.println("\t\t<Process>");
			out.print("\t\t\t<Result>");
			out.println("Exception</Result>");
			out.print("\t\t\t<Message><![CDATA[");
			out.print("hahahahahahahaha");
			out.println("]]></Message>");
			out.println("\t\t</Process>");
			out.println("\t</Result>");
		} catch (Throwable e) {

			// throw new ServletException(e);
		} finally {

		}		
	}
	
	
	
}
